//package com.hui.aop;
//
//import com.hui.auth.dto.JsonResult;
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.annotation.Around;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Before;
//import org.aspectj.lang.annotation.Pointcut;
//import org.springframework.context.annotation.Configuration;
//
///**
// * Spring-boot aop
// * @apiNote 通知类型有：前置通知、后置最终通知、后置返回通知、后置异常通知、环绕通知
// * @apiNote http://blog.csdn.net/zknxx/article/details/53240959
// */
//@Aspect
//@Configuration
//public class LogInterceptor {
//
//    //指定切点
//    @Pointcut("execution(public * com.hui.aop.AopTestController.testBeforeService())")
//    public void executeService(){
//        System.out.println("excudeService");
//    }
//
//    @Before("executeService()")
//    public void twiceAsOld1(JoinPoint joinPoint){
//        System.err.println ("切面before执行了");
//    }
//
//    @Around("executeService()")
//    public Object twiceAsOld(ProceedingJoinPoint thisJoinPoint){
//        System.err.println ("切面Around执行了");
//        return new JsonResult<>();
//    }
//
//}